//
//  HMComposeMenuButton.swift
//  Weibo02
//
//  Created by teacher on 16/4/25.
//  Copyright © 2016年 teacher. All rights reserved.
//  撰写按钮动画里面的菜单按钮

import UIKit

class ComposeMenuButton: UIButton {
    
    // 如何重写一个类的属性
    override var highlighted: Bool {
        get{
            return false
        }
        set{
            
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
//        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func setupUI(){
        titleLabel?.textAlignment = .Center
        imageView?.contentMode = .Center
    }


    override func layoutSubviews() {
        super.layoutSubviews()
        
//        // 调整 imageView 的宽高
//        self.imageView?.frame = CGRect(x: 0, y: 0, width: self.frame.width, height: self.frame.width)
        
//        // 调整label
//        self.titleLabel?.frame = CGRect(x: 0, y: self.imageView!.frame.height, width: self.imageView!.frame.width, height: 18)
        
    }

}
